-
Notifications
You must be signed in to change notification settings - Fork 94
additional exports and wrappers #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
security-framework/src/trust.rs
Outdated
@@ -103,6 +104,11 @@ impl SecTrust { | |||
unsafe { cvt(SecTrustSetPolicies(self.0, policy.as_CFTypeRef())) } | |||
} | |||
|
|||
/// Returns the public key for a leaf certificate after it has been evaluated. | |||
pub fn copy_public_key(&mut self) -> Result<SecKey> { | |||
unsafe { Ok(SecKey::wrap_under_get_rule(SecTrustCopyPublicKey(self.0))) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure about the get rule? I think Copy
functions behave like Create
ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I do not know. We can remove this for now perhaps and leave the low level APIs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine. Just change it to create rule.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thank you |
No description provided.